package hellojava.launcher;

import java.io.IOException;

import org.apache.tuscany.sca.host.embedded.SCADomain;
public class HelloJavaLauncher {

	public static void main(String[] args) {
		SCADomain scaDomain = SCADomain.newInstance("hellojava.composite");
		try {
			System.out
					.println("HelloJava server started (press enter to shutdown)");
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
		scaDomain.close();
		System.out.println("HelloJava server stopped");

	}

}
